<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			// 创建数组
			
			var arr1 = new Array();
			console.log(arr1.length);
			arr1[0] = "张三";
			arr1[1] = "李四";
			arr1[2] = "王五";
			console.log(arr1);
			
			var arr2 = new Array(10,20,30);
			console.log(arr2);
			
			var arr3 = [10,20,30];
			console.log(arr3);
			
			var arr4 = [
				{id:1,name:"张三",age:18	},
				{id:2,name:"李四",age:18	},
				{id:3,name:"王五",age:18	},
			]
			console.log(arr4);
			
			var person = {
				name:"张三",
				friends: ["王五","赵六"];
			}
			
			
		</script>
	</body>
</html>